package com.iot08.common.entity.app;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.UUID;

/**
 * @author cwj
 * @description
 * @date 2025/1/16 15:01
 **/
@Data
public class ApplePayTransactionInfo implements Serializable {

    //原始交易id
    private String originalTransactionId;
    //交易id
    private String transactionId;
    //币种
    private String currency;
    //期待日期
    private Long expiresDate;
    //
    private String inAppOwnershipType;
    //
    private String webOrderLineItemId;
    //
    private String subscriptionGroupIdentifier;
    //购买日期
    private Long purchaseDate;
    //初始购买日志
    private Long originalPurchaseDate;
    //购买商品的数量
    private Integer quantity;
    //app购置类型
    private String type;

    private String appAccountToken;
    //续订原因
    private Integer revocationReason;
    //续订日期
    private Long revocationDate;
    //是否升级
    private Boolean isUpgraded;

    private Integer offerType;

    private String offerIdentifier;
    //购买相关的 App Store 商店前台的国家或地区
    private String storefront;

    private String storefrontId;
    //交易原因
    private String transactionReason;
    //购买价格
    private BigDecimal price;
    //折扣类型
    private String offerDiscountType;
}
